from typing import Dict, Any, List
from .base_service_handler import BaseServiceHandler

class DefaultServiceHandler(BaseServiceHandler):
    """默认服务信息处理器"""
    
    def get_service_details(self, service_info: Dict[str, Any]) -> List[str]:
        """获取默认的服务详细信息"""
        details = []
        
        if service_info.get('product'):
            details.append(f"产品: {self._safe_str(service_info['product'])}")
        if service_info.get('version'):
            details.append(f"版本: {self._safe_str(service_info['version'])}")
        if service_info.get('banner'):
            details.append(f"Banner: {self._safe_str(service_info['banner'])}")
            
        return details 